<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>libcarcode.widgets.layout</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>libcarcode.widgets.layout</h1>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#Pack">Pack</a></td>
<td>Widget packing Aligns and resizes a list of widgets in a vertical or horizontal fashion.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="Pack" ID="Pack"></a>
<h2>Pack</h2>
<p>
 Widget packing
    Aligns and resizes a list of widgets in a vertical or horizontal fashion.
</p>
<h3>Derived from</h3>
Widget
<h3>Methods</h3>
<table>
<tr>
<td><a href="#Pack.__init__">Pack</a></td>
<td>Pack</td>
</tr><tr>
<td><a href="#Pack.add_entity">add_entity</a></td>
<td></td>
</tr><tr>
<td><a href="#Pack.draw">draw</a></td>
<td></td>
</tr><tr>
<td><a href="#Pack.events">events</a></td>
<td></td>
</tr><tr>
<td><a href="#Pack.refresh">refresh</a></td>
<td></td>
</tr><tr>
<td><a href="#Pack.set_size">set_size</a></td>
<td></td>
</tr>
</table>
<p><a NAME="Pack.__init__" ID="Pack.__init__"></a>
<h4>Pack (Constructor)</h4>
<b>Pack</b>(<i>orientation = VERTICAL, padding = 1, margin = 1, *args, **kargs</i>)
<p>
 Pack
</p><dl>
<dt><i>orientation</i></dt>
<dd>
packing orientation, VERTICAL by default
</dd><dt><i>padding</i></dt>
<dd>
interwidget padding, 1 by default
</dd><dt><i>margin</i></dt>
<dd>
pack margin, 1 by default
</dd><dt><i>pos</i></dt>
<dd>
tuple with widget position (x, y)
</dd><dt><i>size</i></dt>
<dd>
tuple with widget size (width, height)
</dd>
</dl><a NAME="Pack.add_entity" ID="Pack.add_entity"></a>
<h4>Pack.add_entity</h4>
<b>add_entity</b>(<i>obj, expand = True</i>)
<a NAME="Pack.draw" ID="Pack.draw"></a>
<h4>Pack.draw</h4>
<b>draw</b>(<i></i>)
<a NAME="Pack.events" ID="Pack.events"></a>
<h4>Pack.events</h4>
<b>events</b>(<i>event</i>)
<a NAME="Pack.refresh" ID="Pack.refresh"></a>
<h4>Pack.refresh</h4>
<b>refresh</b>(<i></i>)
<a NAME="Pack.set_size" ID="Pack.set_size"></a>
<h4>Pack.set_size</h4>
<b>set_size</b>(<i>size</i>)
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>